package com.team02.gps;

import android.app.Activity;
import android.content.Context;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;

public class Location extends Activity {
	// Acquire a reference to the system Location Manager
	public LocationManager locationManager = (LocationManager) this
			.getSystemService(Context.LOCATION_SERVICE);

	// Define a listener that responds to location updates
	LocationListener locationListener = new LocationListener() {
		public void onLocationChanged(android.location.Location location) {
			// Called when a new location is found by the network location
			// provider.
			makeUseOfNewLocation(location);
		}

		public void onStatusChanged(String provider, int status, Bundle extras) {
		}

		public void onProviderEnabled(String provider) {
		}

		public void onProviderDisabled(String provider) {
		}



	};

	public void makeUseOfNewLocation(android.location.Location location) {
		System.out.println(location);
	}
}
